package com.niodata.dp.plugin.core;

import java.io.IOException;

public class PluginContextFactoryImpl implements PluginContextFactory {

  @Override
  public <T> PluginContext getOrCreateContext(Class<? extends AbstractDpTaskPlugin> pluginClass)
        throws IOException {
    return PluginContextFactoryAdapter.getOrCreateContext(pluginClass);
  }

  @Override
  public PluginContext createRemoteContext(Class<? extends AbstractDpTaskPlugin> pluginClass)
        throws IOException {
    return PluginContextFactoryAdapter.createRemoteContext(pluginClass);
  }

  @Override
  public PluginContext createLocalContext(Class<? extends AbstractDpTaskPlugin> pluginClass)
        throws IOException {
    return PluginContextFactoryAdapter.createLocalContext(pluginClass);
  }
}
